from flask import Flask,request,render_template
# import db
app = Flask(__name__)
 
 
@app.route('/',methods=['POST','GET'])
def index():
    return render_template('index.html',message="GET")
 
# @app.route('/test',methods=['POST','GET'])
# def test():
#     if request.method=="GET":
#         print("GET")
#         return render_template('index.html',message="GET")
#     else:
#         print('POST')
#         id=request.form['ID']
#         message=db.get_data(id)
#         for i in  message:
#             print(i)
#         return render_template('test.html',message=message,id=id)
 
if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug=False)